Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactored how we get results from Mercadopago. #271

Merged
merged 5 commits into from
Dec 24, 2023

Conversation

facundobatista
Copy link
Member

In detail:

  • updated lib version (had to change how to instantiate/authenticate the lib, which method to use and how parameters are indicated)

  • increment the offset not by a hardcoded value but using the quantity of last retrieved results

  • stop hitting the backend only after we get empty results of the endpoint that exposes more results (every hit indicates a different "total", so we track which is the max available)

@facundobatista facundobatista merged commit 7586b8b into master Dec 24, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants